﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LMS.SMSH.MODEL;
using LMS.SMSH.BLL;
using System.Data.Linq;
using System.Data;

namespace LMS.SMSH.WEB
{
    public partial class AdmTestStuManage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

            }
        }

        /// <summary>
        /// 将信息写入 project数据表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnOK_Click(object sender, EventArgs e)
        {
            LMSDataContext.GetLMSDB.sp_addPro(txtProId.Text, txtProName.Text, "", DateTime.Parse(txtProjectDate.Text.Trim()),
                 Int32.Parse(txtStudentNumber.Text.Trim()), "", txtContent.Text);
            ClientScript.RegisterStartupScript(this.GetType(), "", "alert('添加成功!')", true);
            Response.Redirect("AdmTestItemManange.aspx");
        }
    }
}